<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ImageContentServiceImpl
 *
 * @author krisada.thiangtham
 */
class ImageContentServiceImpl {

    private $dispatcher;

    public function __construct(ImageContentDao $dispatcher) {
        return $this->dispatcher = $dispatcher;
    }

    public function action($action) {
        return $this->dispatcher->dispatch($action);
    }

    //put your code here
    public function createNewImageContent($imageID, $imagePath, $imageName, $descID, $imageCreatedDateTime) {
        return $this->dispatcher->createNewImageContent($imageID, $imagePath, $imageName, $descID, $imageCreatedDateTime);
    }

    public function deleteImageContentByID($imageID) {
        return $this->dispatcher->deleteImageContentByID($imageID);
    }

    public function updateImageContent($imageTO) {
        return $this->dispatcher->updateImageContent($imageTO);
    }

    public function getImageContentByID($imageID) {
        return $this->dispatcher->getImageContentByID($imageID);
    }

    public function getAllImageContentByDescID($descID) {
        return $this->dispatcher->getAllImageContentByDescID($descID);
    }

    public function deleteAllFileTemp() {
        return $this->dispatcher->deleteAllFileTemp();
    }

    public function getImageByDescID($descID) {
        return $this->dispatcher->getImageByDescID($descID);
    }

}
